import '../../models/user.dart';

abstract class AuthState {}

class AuthInitial extends AuthState {} // Initial state before checking
class AuthLoading extends AuthState {} // State when login/logout is in progress
class AuthCode extends AuthState {
  final String message;
  AuthCode(this.message);
} // State when login/logout is in progress
class AuthFailCode extends AuthState {
  final String error;
  AuthFailCode(this.error);
} // State when login/logout is in progress

class AuthAuthenticated extends AuthState {
  final User user;
  AuthAuthenticated(this.user);
}

class AuthUnauthenticated extends AuthState {}
class  AuthLogout  extends AuthState {}

class AuthFailure extends AuthState {
  final String error;
  AuthFailure(this.error);
}